//
//  HYBaseHandler.m
//  Around
//
//  Created by 华谕 on 2017/6/13.
//  Copyright © 2017年 HUYU. All rights reserved.
//

#import "HYBaseHandler.h"

@implementation HYBaseHandler



//通用表单
+ (void)requestWithTheFormUrl:(NSString *)url Parmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPath:url params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

//通用Json
+ (void)requestWithJsonUrl:(NSString *)url Parmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed
{
    [HttpTool postWithPathJson:url params:parmers success:^(id json) {
        success(json);
    } failure:^(NSError *error) {
        failed(error);
        
    }];
}

@end
